/***********************************************
 * Title:       ExcelMappings.java
 * Description: ExcelMappings.java
 * Author:      NiDeveloper
 * Create Date: 2010-4-24
 * CopyRight:   CopyRight(c)@2009
 * Company:     TJUSCS
 * Version:     1.0
 ***********************************************
 */
package com.younker.waf.excelUpload;

import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;

/**
 * @author NiDeveloper
 *
 */
public class ExcelMappings
{
        private Logger log = Logger.getLogger(ExcelMappings.class);
        private Map<String, ExcelMapping> excelMappings = new HashMap<String, ExcelMapping>();
        
        public ExcelMapping getExcelMapping( String mappingName )
        {
                return excelMappings.get(mappingName);
        }
        
        public void addExcelMapping( ExcelMapping excelMapping )
        {
                log.debug("add ExcelMapping:" + excelMapping);
                excelMappings.put(excelMapping.getName(), excelMapping);
        }

        /* (non-Javadoc)
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString()
        {
                return "ExcelMappings [excelMappings=" + excelMappings + "]";
        }
        
        
        
        
}
